#include "dandytanks.h"
#include "ui_dandytanks.h"
#include "MenyScene.h"
#include <QDebug>

DandyTanks::DandyTanks(QWidget *parent) :
    QMainWindow(parent),
    ui(new Ui::DandyTanks)
{
    ui->setupUi(this); 
}

void DandyTanks::SetScreen(MenyScene * scene)
{

    ui->graphicsView->setFixedWidth(this->width());
    ui->graphicsView->setFixedHeight(this->height());
    ui->graphicsView->setScene(scene);
}

DandyTanks::~DandyTanks()
{
    delete ui;
}

void DandyTanks::CreateMap(QString  S)
{
   emit CreateMap(32, 32, S, 3, 10, 40, 2);
}

void DandyTanks::mastchange(MenyScene *scene)
{
     ui->graphicsView->setScene(scene);
}

void DandyTanks::StartGame()
{
 emit signalStartGame();
}

 void DandyTanks::GameOver(int)
 {

 }


